package com.heima.comment.feign;


import com.heima.comment.entity.ApUser;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("leadnews-user")
@Component
public interface UserFeign {

    // 根据id查询用户信息
    @PostMapping("/api/v1/user/selectUser")
    public ResponseResult<ApUser> selectUser(@RequestParam("userId") Integer userId);
}
